/**
 * Copyright (c) Daniel Centore
 *
 * ex: set filetype=java expandtab tabstop=4 shiftwidth=4 :
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of
 * the License, or (at your option) any later version.
 *
 * This code is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * This code is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published
 * by the Free Software Foundation.
 */
package ronp.data;

import javax.swing.JList;

/**
 * Modifies a {@link BoundListModel} so we can directly inject new names into it
 * 
 * @author Daniel Centore
 *
 * @param <E> The type in the {@link BoundListModel} we will be binding to
 */
public interface BoundListModelModifier<E>
{
	/**
	 * Modifies an object for injection
	 * @param o The original object
	 * @return The one we should provide (ie to {@link JList})
	 */
	public Object modify(E o);
}
